/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 说明： Entity Name 盈利亏损订单汇总表
 * 
 * @Date：2012-03-14
 */
@Entity
@Table(name = "ruipengkj_view_surplus_order_summary")
public class ViewSurplusOrderSummary implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private String OrderID;// 订单编号
	private Date AddTime;//日期
	private int totalNumber;// 数量
	private double totalPrice;//总金额
	private Double surplus;//盈余
	
	private boolean isSur;//不进数据库 是否盈余
	
	
	@Id
	public String getOrderID() {
		return OrderID;
	}
	public void setOrderID(String orderID) {
		OrderID = orderID;
	}
	public Date getAddTime() {
		return AddTime;
	}
	public void setAddTime(Date addTime) {
		AddTime = addTime;
	}
	
	public int getTotalNumber() {
		return totalNumber;
	}
	public void setTotalNumber(int totalNumber) {
		this.totalNumber = totalNumber;
	}
	public double getTotalPrice() {
		return totalPrice;
	}
	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}
	
	

	public Double getSurplus() {
		return surplus;
	}
	public void setSurplus(Double surplus) {
		if(surplus==null){
			surplus=0.00;
		}else{
			this.surplus = surplus;
		}
	}
	@Transient
	public boolean isSur() {
		return isSur;
	}
	public void setSur(boolean isSur) {
		this.isSur = isSur;
	}
}
